package com.ckk.cloud.provider.payment8001.service.impl;

import com.ckk.apicommoncloud.entity.Payment;
import com.ckk.cloud.provider.payment8001.dao.PaymentDao;
import com.ckk.cloud.provider.payment8001.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 陈昆昆
 * @version 1.0
 * @date 2020/6/15 15:13
 */
@Service
public class PaymentServiceImpl implements PaymentService {
    @Autowired
    private PaymentDao paymentDao;


    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
